import 'package:get/get_rx/src/rx_types/rx_types.dart';
class AddDeviceState{

  var step = AddDeviceStep.onStop.obs;

  var result = false.obs;
  var code = "-1".obs;
  var subcode = "-1".obs;
  var codeName = "-1".obs;
  var msg = "".obs;

  var prepareType = -1.obs;
  var productKey = "".obs;
  var deviceName = "".obs;
  var token = "".obs;
}

enum AddDeviceStep {

  ///配网状态
  onStop,
  onPreCheck,
  onProvisionPrepare,
  onProvisioning,
  onProvisionStatus,
  onProvisionedResult,

  ///获取token
  onGetToken,
  onGetTokenSuccess,
  onGetTokenFail,

  ///获取iotId
  onGetIotId,
  onGetIotIdSuccess,
  onGetIotIdFail,
}
